<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="icon" type="shortcut icon" th:href="@{/img/favicon.ico}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.min.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/global.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/login.css}"/>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
    <title>Echo - 重置密码</title>
</head>
<body>
<div class="nk-container">
    <!-- 头部 -->
    <!--		<header class="bg-dark sticky-top" th:replace="index::header"></header>-->


    <!-- 修改密码 -->
    <h6 class="text-left text-info border-bottom pb-2 mt-5">修改密码</h6>
    <form class="mt-5" id="reset-pwd" action="/user/resetPwd" method="post">
        <div class="form-group row mt-4">
            <label for="new-password" class="col-sm-2 col-form-label text-right">新密码:</label>
            <div class="col-sm-10">
                <input type="password" class="form-control"
                       th:class="|form-control ${newPasswordError != null ? 'is-invalid' : ''}|"
                       id="new-password" name="password" placeholder="请输入新的密码!" required>
                <div class="invalid-feedback" th:text="${newPasswordError}"></div>
            </div>
        </div>
        <div class="form-group row mt-4">
            <label for="confirm-password" class="col-sm-2 col-form-label text-right">确认密码:</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" id="confirm-password" placeholder="再次输入新密码!"
                       required>
                <div class="invalid-feedback"></div>
            </div>
        </div>
        <div class="form-group row mt-4">
            <div class="col-sm-2"></div>
            <div class="col-sm-10 text-center">
                <button type="submit"  class="btn btn-info text-white">确认重置</button>
            </div>
        </div>
    </form>
</div>
</div>

<!-- 尾部 -->
<footer class="bg-dark" th:replace="index::footer"></footer>
</div>

<script th:src="@{/js/jquery-3.1.0.min.js}"></script>
<script th:src="@{/js/popper.min.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>

</body>
</html>
